package com.niit.service.impl;

import com.niit.dao.ICarouselDao;
import com.niit.dao.impl.CarouselDaoImpl;
import com.niit.domain.Carousel;
import com.niit.service.ICarouselService;

import java.util.List;

public class CarouselServiceImpl implements ICarouselService {


    @Override
    public List<Carousel> carouselService(Integer page) {
        ICarouselDao iCarouselDao = new CarouselDaoImpl();
        List<Carousel> list = iCarouselDao.queryCarousel(page);
        return list;
    }
}
